package com.taobao.ui.widget;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;

public class RoomWidget extends Composite {

    /**
     * Create the composite.
     * 
     * @param parent
     * @param style
     */
    public RoomWidget(Composite parent, int style) {
        super(parent, style);
        GridLayout gridLayout = new GridLayout(1, false);
        gridLayout.marginWidth = 0;
        gridLayout.marginHeight = 0;
        gridLayout.horizontalSpacing = 5;
        setLayout(gridLayout);

        Composite head = new Composite(this, SWT.NONE);
        GridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
        gridData.heightHint = 145;
        head.setLayoutData(gridData);
        GridLayout gridLayout_1 = new GridLayout(3, false);
        gridLayout_1.marginWidth = 0;
        gridLayout_1.marginHeight = 0;
        head.setLayout(gridLayout_1);

        UserInfoWidget userInfoWidget = new UserInfoWidget(head, SWT.NONE);
        GridData gridData_1 = new GridData(SWT.LEFT, SWT.FILL, false, true, 1, 1);
        gridData_1.widthHint = 313;
        userInfoWidget.setLayoutData(gridData_1);

        SystemWidget systemWidget = new SystemWidget(head, SWT.NONE);
        GridData gridData_2 = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
        gridData_2.widthHint = 119;
        systemWidget.setLayoutData(gridData_2);

        FilterWidget filterWidget = new FilterWidget(head, SWT.NONE);
        filterWidget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        RoomTaskWidget roomTaskWidget = new RoomTaskWidget(this, SWT.NONE);
        roomTaskWidget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 4, 1));
    }

}
